package com.evan.kdl.test.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author huangzhongliang
 * @time 2024/01/18 11:41
 */

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class PriceResultVo {
    private int price;            // 平台价格
    private int discount;        // 折扣
    private int realPrice;        // 最终价
    private String platform;    // 商品平台

    public PriceResultVo(String platform) {
        this.platform = platform;
    }

    @Override
    public String toString() {
        return "PriceResult{" +
                "平台价格=" + price +
                ", 折扣=" + discount +
                ", 最终价=" + realPrice +
                ", 商品平台='" + platform + '\'' +
                '}';
    }
}
